class Elephant {
}

class Fridge {
    status: string
    elephants: Elephant[] = []

    open() {
        this.status = "opened"
    }

    put(elephant: Elephant) {

        this.elephants.push(elephant)
    }

    close() {
        this.status = "closed"
    }
}

function main() {
    const fridge = new Fridge()
    fridge.open()
    const elephant = new Elephant()
    fridge.put(elephant)
    fridge.close()
}
